/**
 * Created by Administrator on 2017/8/16.
 */

$(document).ready(function () {


    $(document).on('click','.out-login',function () {
        dialog.confirm({
            title: "确认要退出吗",
            content: "",
            ok: function () {
                loginOut();
            },
            cancel: function () {
            }
        });
    });

    function loginOut() {
        var token=localStorage.getItem('token');
        localStorage.removeItem('token');
        dialog.tusiSuccess('退出成功');
        setTimeout(function () {
            location.href = 'login.html';
        }, 1000);
    }




});
